Skip to main content

2.2.4. Body Structure

Required fields are in bold.

FieldExampleType and formatComments
{
"zNumber"4,intshift number, should be unique for deviceID
"fiscalNum"70113,int
"firstNumber"1,intnumber of the first document from the shift
"lastNumber"1,intnumber of the last document from the shift
"cashier""Cashier 1",stringname of the cashier
"dateTime""2025-01-02T10:25:21.076Z",dateTime of ISO-8601 formatshould be less or equal than the first document dateTime + shift length
"currency""UAH",string
"msgId"16,int
"totals"
{
"sale"
{
"count"17,int
"amount"223000intshould be equal to the sum of all payments for the Β sale
},
"deposit"
{
"count"1,int
"amount"10000int
},
"refund"
{
"count"1,int
"amount"10000intshould be equal to the sum of all payments for the refund
},
"withdraw"{ … },same fields as the for the sale, deposit and refund
},
"payments"
{
"sale"
[
{
"type""CASH",stringtype of payment
"amount"223000int
},
],
"refund"
[
{
"type""CARD",string
"amount"2300int
}
]
},
"taxTotals"
{
"sale"
[
{
"taxCode""A",string
"taxRate"2000,int
"taxAmount"15600int
}
],
"refund"
[
{
"taxCode""A",string
"taxRate"2000,int
"taxAmount"1600int
}
],
},
"identity"
{
"fn""567765",stringdevice token
"tin""1111111111",string
"shopName""SHOP #1",string
"shopAddress""Unknown st., 404"string
},
"location"optional
{
"latitude"6.500183676689106,float
"longitude"120.76210479216934,float
"radius"1000int
}
}